import request from "@/utils/request.js";
// 获取所有分类
export const getAllList = (params) => {
    return request.post("/treehole/all/", params);
}
//新增
export const addNewTreeHole = (params) => {
    return request.post("/treehole/add/", params);
}
//编辑
export const editTreeHole = (params) => {
    return request.post("/treehole/edit/", params);
}
//删除
export const deleteTreeHole = (params) => {
    return request.post("/treehole/delete/", params);
}
//上传图片
export const upCover = (params) => {
    return request.post("/treehole/uploadCover/", params);
}